let vm = new Vue({
    el:'#app',
    data:{
        // 保存输入框中输入的商品
        goods:'',
        // 保存商品
        goodsArr:[],
        searchList:["麻辣烫","米线","披萨","蛋糕","螺蛳粉","烧烤"]
    },
    methods:{
        addGoods(){
            if(this.goods){
                this.goodsArr.push(this.goods);
                this.goods = "";
            }
        },
        deleteGoods(){
            this.goodsArr = '';
        }
    }
})